package com.pactera.madp.cp.api.feign;

import com.pactera.madp.common.core.constant.SecurityConstants;
import com.pactera.madp.common.core.constant.ServiceNameConstants;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @File name：com.pactera.madp.cp.api.feign.RemoteMomentsTaskService
 * @Create on：2022/5/17
 * @Author：tianq
 */
@FeignClient(contextId = "remoteMomentsTaskService", value = ServiceNameConstants.CP_SERVICE)
public interface RemoteMomentsTaskService {

    @PutMapping("/moments-task/syn-task")
    void synMomentsTaskDetails(@RequestHeader(SecurityConstants.FROM) String from);

    @PutMapping("/moments-task/update-status")
    void updateStatus(@RequestHeader(SecurityConstants.FROM) String from);

    @DeleteMapping("/moments-task/overdue-tasks")
    void deleteOverdueTasks(@RequestHeader(SecurityConstants.FROM) String from);
}
